package io.github.xbeeant.eoffice.model;

import io.github.xbeeant.core.BaseModelObject;
import java.io.Serializable;

/**
 * 
 * eoffice_user
 */
public class User extends BaseModelObject<Long> implements Serializable {
    /**
     * 
     * 用户ID
     */
    private Long uid;

    /**
     * 
     * 邮箱
     */
    private String email;

    /**
     * 
     * 手机号
     */
    private String phone;

    /**
     * 
     * 企业微信号
     */
    private String weixinid;

    /**
     * 
     * 用户名
     */
    private String username;

    /**
     * 
     * 昵称
     */
    private String nickname;

    /**
     * 
     * 密码
     */
    private String password;

    /**
     * 
     * 密码校验方式
     */
    private String authType;

    /**
     * 
     * 状态
     */
    private Boolean status;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table eoffice_user
     *
     * @mbg.generated Sat Jul 10 16:47:14 CST 2021
     */
    private static final long serialVersionUID = 1L;

    /**
     * get field 用户ID
     * @return uid 用户ID
     */
    public Long getUid() {
        return uid;
    }

    /**
     * set filed 用户ID
     * @param uid the value for 用户ID
     */
    public void setUid(Long uid) {
        this.uid = uid;
    }

    /**
     * get field 邮箱
     * @return email 邮箱
     */
    public String getEmail() {
        return email;
    }

    /**
     * set filed 邮箱
     * @param email the value for 邮箱
     */
    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    /**
     * get field 手机号
     * @return phone 手机号
     */
    public String getPhone() {
        return phone;
    }

    /**
     * set filed 手机号
     * @param phone the value for 手机号
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * get field 企业微信号
     * @return weixinid 企业微信号
     */
    public String getWeixinid() {
        return weixinid;
    }

    /**
     * set filed 企业微信号
     * @param weixinid the value for 企业微信号
     */
    public void setWeixinid(String weixinid) {
        this.weixinid = weixinid == null ? null : weixinid.trim();
    }

    /**
     * get field 用户名
     * @return username 用户名
     */
    public String getUsername() {
        return username;
    }

    /**
     * set filed 用户名
     * @param username the value for 用户名
     */
    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    /**
     * get field 昵称
     * @return nickname 昵称
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * set filed 昵称
     * @param nickname the value for 昵称
     */
    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    /**
     * get field 密码
     * @return password 密码
     */
    public String getPassword() {
        return password;
    }

    /**
     * set filed 密码
     * @param password the value for 密码
     */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    /**
     * get field 密码校验方式
     * @return authType 密码校验方式
     */
    public String getAuthType() {
        return authType;
    }

    /**
     * set filed 密码校验方式
     * @param authType the value for 密码校验方式
     */
    public void setAuthType(String authType) {
        this.authType = authType == null ? null : authType.trim();
    }

    /**
     * get field 状态
     * @return status 状态
     */
    public Boolean getStatus() {
        return status;
    }

    /**
     * set filed 状态
     * @param status the value for 状态
     */
    public void setStatus(Boolean status) {
        this.status = status;
    }

    @Override
    public Long valueOfKey() {
        return uid;
    }

    @Override
    public void assignKeyValue(Long value) {
        this.uid = value;
    }
}